<?php

/**
 * JingYao-backend
 *
 * @link     https://gitee.com/wang-zhihui-release/jingyao-backend
 * @apiDocument https://gitee.com/wang-zhihui-release/jingyao-backend/wikis/
 */

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateAssessTemplatesTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::create('assess_templates', function (Blueprint $table) {
            $table->id();
            $table->string('title')->comment('评审项目')->nullable();
            $table->string('name')->comment('模版名称');
            $table->string('description')->comment('模版描述');
            $table->tinyInteger('status')->comment('状态 是否启用 1on 2off');
            $table->tinyInteger('type')->default(0)->comment('类别 1 流动人口, 2 非流动人口 3 村委 4 企业');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('assess_templates');
    }
}
